package com.grailsinaction

import grails.test.*

import grails.test.*
class UserIntegrationTests extends GrailsUnitTestCase {
    void testFirstSaveEver() {
        def user = new User(userId: 'joe', password: 'secret', homepage: 'http://www.grailsinaction.com')
        assertNotNull user.save()
        assertNotNull user.id
        def foundUser = User.get(user.id)
        assertEquals 'joe', foundUser.userId
    }
}
